home *** CD-ROM | disk | FTP | other *** search
/ io Programmo 67 / IOPROG_67A.ISO / soft / Tools / mwsppv4.exe / INSERT ISPOINTINRECT.SCRIPT < prev    next >
Encoding:
Text File  |  2000-10-22  |  519 b   |  25 lines

  1. !!Script
  2. // Copyright ⌐ 1997-2000 - Modelworks Software
  3.  
  4. // Insert script helper for:
  5.  
  6. /**
  7. @Object: Rect 
  8. @Method: isPointInRect - returns true if Point is in Rect.
  9. @Syntax: rect.isPointInRect(point)
  10. @Summary: isPointInRect - tests if Point is in Rect
  11. */
  12.  
  13. function DoCommand()
  14. {
  15.   var editor = getActiveEditor();
  16.   if (editor)
  17.   {
  18.     var selection = editor.getSelection();
  19.     editor.replace("rect.isPointInRect(point)", selection);
  20.     editor.setActive("rect.isPointInRect");
  21.   }
  22. }
  23.  
  24. !!/Script
  25.